/*
package com.bub.pay.api.controller;

import com.bub.pay.core.entity.vo.user.GoogleVo;
import com.bub.pay.core.entity.vo.user.PasswordVo;
import com.bub.pay.core.manager.user.UserCommonManager;
import com.bub.pay.framework.common.util.ContextHolder;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import javax.validation.Valid;

@RestController
@RequestMapping("/agent/user/")
public class UserController extends BaseController {

	@Resource
	private UserCommonManager userCommonManager;

	@PostMapping("bindGoogle")
	public Object bindGoogle(@RequestBody @Valid GoogleVo reqVo) throws Exception {
		return userCommonManager.bindGoogle(ContextHolder.currentUserInfo().getUserId().toString(), reqVo);
	}

	@PostMapping("queryBindGoogle")
	public Object queryBindGoogle() throws Exception {
		return userCommonManager.queryBindGoogle(ContextHolder.currentUserInfo().getUserId().toString());
	}

	@PostMapping("refreshBindGoogle")
	public Object refreshBindGoogle() throws Exception {
		return userCommonManager.refreshBindGoogle(ContextHolder.currentUserInfo().getUserId().toString());
	}

	@PostMapping("removeGoogle")
	public Object removeGoogle(@RequestBody @Valid GoogleVo reqVo) throws Exception {
		return userCommonManager.removeGoogle(ContextHolder.currentUserInfo().getUserId().toString(), reqVo);
	}

	@PostMapping("changePassword")
	public Object changePassword(@RequestBody @Valid PasswordVo reqVo)
			throws Exception {
		return userCommonManager.changePassword(ContextHolder.currentUserInfo().getUserId().toString(), reqVo);
	}

	@PostMapping("changePayPassword")
	public Object changePayPassword(@RequestBody @Valid PasswordVo reqVo)
			throws Exception {
		return userCommonManager.changePayPassword(ContextHolder.currentUserInfo().getUserId().toString(), reqVo);
	}
}
*/
